package com.zixuan.sina.controller;

import com.zixuan.sina.service.PermissionService;
import com.zixuan.sina.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/permission/")
public class PermissionController {
  @Resource
    PermissionService permissionService;
    //获取菜单数据
    @GetMapping("getPermissionList")
    public Result getPermissionList(){
        return permissionService.getPermissionList();
    }
}
